﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tenta_v2
{
    class Program
    {
        class Data
        {
            public int I { get; set; }

            public Data(int i = 0)
            {
                I = i;
            }

            public override string ToString()
            {
                return I.ToString();
            }
        }
        static void Main(string[] args)
        {
            HT<string, Data> hash = new HT<string,Data>();
            for (int i = 0; i < 50; i++)
            {
                hash.Add(i.ToString(), new Data(i));
            }
            hash.Print();
            Console.WriteLine(hash.Search("12").Data.ToString());

            foreach (var item in hash)
            {
                Console.WriteLine(item.ToString());
            }
            Console.Read();
        }
    }
}
